<%@ page title="" language="C#" masterpagefile="~/RealtimeSite.master" autoeventwireup="true" inherits="HardwareSetup_501F, App_Web_v22zhzdt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

<style>
.panel-heading {
    padding: 7px;
    background: #ff7038fa !important;
    font-size:16px;
}
.panel
{
    background:#eee;
}
.card [class*=card-header-]:not(.card-header-icon):not(.card-header-text):not(.card-header-image) {
    border-radius: 3px;
    margin-top: -20px;
    padding: 7px;
    padding-left: 10px;
}
</style>
    <div class="main-panel">
        <div class="content">
        <div class="container" id="hardwaresetup501" runat="server">
    <div class="row dash-pane2">

    <div class="card">
                <div class="card-header card-header-warning">
                  <h4 class="card-title">   <i class="fa fa-edit fa-fw"></i><asp:Label ID="lblConnectDevice" runat="server" Text="Connect Device"></asp:Label></h4>
                </div>
                <div class="card-body ">
                
                   
                       <div class="row" style="height:350; overflow:auto">
                       <div class="table-responsive">
                               <asp:GridView ID="online_devices" runat="server" DataSourceID="online_devices_datasource" class="table table-hover"   
        AutoGenerateColumns="false" OnRowCommand="online_devices_RowCommand"  OnRowDataBound="online_devices_RowDataBound" OnSelectedIndexChanged="online_devices_SelectedIndexChanged" >
        <Columns>
            <asp:BoundField DataField="device_uid" HeaderText="DeviceSN " />
            <asp:BoundField DataField="session_id" HeaderText="SessionID " />
            <asp:ButtonField Text="Connected" CommandName="Open" />
        </Columns>
    </asp:GridView>

    </div>
    <asp:ObjectDataSource ID="online_devices_datasource" runat="server"
         TypeName="SmackBio.WebSocketSDK.Sample.DeviceLoginManager" SelectMethod="GetOnlineDevices" 
                                       onselecting="online_devices_datasource_Selecting">
    </asp:ObjectDataSource>


    </div>

   
         
               
                
                </div>
              </div>
        
         <div class="row" style="margin-top:0px; margin-left:auto; margin-right:auto; display:block">
  
    <asp:Button ID="btnrefreash" runat="server" Text="Refresh"  
        type="button" class="btn btn-success " onclick="btnrefreash_Click" />&nbsp;&nbsp;<i class="fa fa-plus;"></i>
        <asp:Button ID="Button1" runat="server" type="button" Text="Close"
           class="btn btn-danger" onclick="Button1_Click1"
           /><i  class="fa fa-trash-o;"></i>
    
    </div>
    </div>


    </div>
    </div>
    </div>
 <%--    <%--<asp:ScriptManager ID="ScriptManager2" runat="server"></asp:ScriptManager>--%>
    <%--<table width="100%">


        <tr>


            <td width="10%">  
      
     <br />

    <br />
  
    
</td>
            <td valign="top" width="50%">
                <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="13pt" 
        ForeColor="#0099CC" Text="Connect Device"></asp:Label>

                 <div id="Div2"  style="overflow:scroll; height: 400px; width: 98%;">
                <asp:GridView ID="online_devices" runat="server" DataSourceID="online_devices_datasource" CssClass="Grid"   
        AutoGenerateColumns="false" OnRowCommand="online_devices_RowCommand" Width="98%" OnRowDataBound="online_devices_RowDataBound" OnSelectedIndexChanged="online_devices_SelectedIndexChanged" >
        <Columns>
            <asp:BoundField DataField="device_uid" HeaderText="DeviceSN " />
            <asp:BoundField DataField="session_id" HeaderText="SessionID " />
            <asp:ButtonField Text="Connected" CommandName="Open" />
        </Columns>
    </asp:GridView>
                     </div>
    <asp:ObjectDataSource ID="online_devices_datasource" runat="server"
         TypeName="SmackBio.WebSocketSDK.Sample.DeviceLoginManager" SelectMethod="GetOnlineDevices">
    </asp:ObjectDataSource></td>
        </tr>
    </table>--%>

 



    </asp:Content>

